#include "mythreadforsubwidget1.h"
#include "subwidget1.h"
#include "ui_subwidget1.h"
#include "subwidget_serial.h"
#include <QSerialPort>
#include <QWidget>

MyThreadForSubwidget1::MyThreadForSubwidget1(SubWidget1 *subWidget1_this):m_subWidget1_this(subWidget1_this)
{

}

MyThreadForSubwidget1::MyThreadForSubwidget1(QSqlDatabase &db, SubWidget_Serial &Serial)
{
    m_subwidget1 = new SubWidget1(db, Serial);
//    m_w1 = new QWidget();
//    m_w1->show();
    m_subwidget1->show();
    qDebug()<<"===========";
}

MyThreadForSubwidget1::MyThreadForSubwidget1()
{
    m_w1 = new QWidget();
    m_w1->show();
    qDebug()<<"===========";
    qDebug()<<"===========";
    qDebug()<<"===========";
    qDebug()<<"===========";
}

void MyThreadForSubwidget1::run()
{

}

void MyThreadForSubwidget1::stopImmediately()
{

}

MyThreadForSubwidget1::~MyThreadForSubwidget1()
{
    delete m_subwidget1;
    delete m_w1;
}
